package com.hgwz.spring.api.params;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class MenuBody implements Serializable {
    @ApiModelProperty("分类编号")
    @NotEmpty(message = "参数不能为空")
    private int cid;

    @ApiModelProperty("菜品名称")
    @NotEmpty(message = "参数不能为空")
    private String mname;

    @ApiModelProperty("价格")
    @NotEmpty(message = "参数不能为空")
    private float price;
}
